package com.example.myworkers.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.example.myworkers.model.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author 门硕然
* @description 针对表【goods】的数据库操作Mapper
* @createDate 2023-10-27 09:42:08
* @Entity com.example.myworkers.model.Goods
*/
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {

    int insertSelective(Goods goods);

    int deleteByGoodsid(@Param("goodsid") Integer goodsid);

    int updateSelective(Goods goods);

    Goods selectOneByGoodsid(@Param("goodsid") Integer goodsid);

    List<Goods> selectAllByName(@Param("name") String name);

}




